package com.wuh.mapper;


import com.wuh.model.GroupAdminApply;
import com.wuh.model.GroupInfo;
import com.wuh.model.GroupUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface GroupMapper {

    List<GroupInfo> getGroups(GroupInfo groupInfo);

    List<GroupInfo> getGroups1(GroupInfo groupInfo);


    void insertGroup(GroupInfo groupInfo);

    GroupInfo selectGroupById(Integer id);

    void insertGroupUser(GroupUser groupUser);

    List<GroupUser>  getGroupUser(GroupUser groupUser);

    List<Integer> selectGroupIdByUser(Integer id);

    void deleteGroupUser(GroupUser groupuser);

    void deleteGroupInfo(Integer gid);

    void insertApply(GroupAdminApply groupAdminApply);

    void deleteApply(Integer gid);

    int getCountByGroupId(Integer gid);

    void updateGroupInfo(GroupInfo groupInfo);

    List<GroupAdminApply> getGroupAdminApply(GroupAdminApply groupAdminApply);

    void updateGroupAdminApply(GroupAdminApply groupAdminApply);

    void updateGroupUser(GroupUser groupUser);

    int getAdminCountByGroupId(GroupUser groupUser);


}
